<%@ page import="com.lbs.demo.entities.UsersEntity" %>
<%@ page import="java.util.List" %>
<%--
  Created by IntelliJ IDEA.
  User: toyking
  Date: 2017/8/26
  Time: 14:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户列表</title>
</head>
<body>

<ol>

    <%
        List<UsersEntity> list = (List<UsersEntity>) request.getAttribute("users");
        for (UsersEntity e : list) {
    %>
        <li>名字：<%=e.getName()%>，年龄：<%=e.getAge()%></li>
    <%}%>

</ol>

<a href="adduser">添加用户</a>

</body>
</html>
